<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'cat-service-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="help-block">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<?php echo $form->textFieldRow($model,'uk',array('class'=>'span5','maxlength'=>255)); ?>

	<?php echo $form->textFieldRow($model,'name',array('class'=>'span5','maxlength'=>255)); ?>

	<?php echo $form->textFieldRow($model,'name_en',array('class'=>'span5','maxlength'=>255)); ?>

	<?php #echo $form->textFieldRow($model,'parent_id',array('class'=>'span5','maxlength'=>11)); ?>
	<label>Thư mục cha</label>
	<?php echo CHtml::dropDownList('parent_id','',$listCat,array(
        	'name'=>'CatProduct[parent_id]',
        )); ?>

	<?php #echo $form->textFieldRow($model,'created_time',array('class'=>'span5')); ?>

	<?php #echo $form->textFieldRow($model,'enable',array('class'=>'span5','maxlength'=>1)); ?>
	<label>Enable</label>
	<?php echo CHtml::dropDownList('enable',(empty($model->enable))? $model->enable : 1 ,array(
			'1'=>'Yes',
    		'0'=>'No',
		),
        array(
        	'name'=>'CatService[enable]',
        )
	); ?>

	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Create' : 'Save',
		)); ?>
	</div>

<?php $this->endWidget(); ?>
